package com.yiyuan.app.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.guaike.core.mybatis.entity.BasePO;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备信息表
 * </p>
 *
 * @author system
 * @since 2024-12-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_conf_device")
public class GConfDevicePO extends BasePO {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 设备名称
     */
    private String deviceName;
    /**
     * 设备序列号
     */
    private String serialNumber;
    /**
     * 协议（也即设备类型，字典码:50001）
     */
    private Integer deviceType;
    /**
     * 报修时间
     */
    private LocalDateTime repairTime;
    /**
     * 是否在线
     */
    private Boolean status;
    /**
     * 逻辑删除（非0:已删除, 0:未删除）
     */
    @TableLogic(value = "0", delval = "now()")
    private Long deleted;



}
